import 'package:freezed_annotation/freezed_annotation.dart';
import 'nv_failures.dart';

part 'nv_result.freezed.dart';

/// 响应数据实体
@Freezed(genericArgumentFactories: true)
class NVResult<T> with _$NVResult<T> {
  const factory NVResult.data(T value) = NVData<T>;
  const factory NVResult.error({required NVFailures failures}) = NVError;
}
